<html>
<head>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />    
  <title>The source code</title>
    <link href="../resources/prettify/prettify.css" type="text/css" rel="stylesheet" />
    <script type="text/javascript" src="../resources/prettify/prettify.js"></script>
</head>
<body  onload="prettyPrint();">
    <pre class="prettyprint lang-js"><div id="cls-Curly.Arc"></div>/**
 * Represents an arc of a circle.
 * 
 * @class Curly.Arc
 * @extends Curly.Shape
 */
<div id="method-Curly.Arc-Arc"></div>/**
 * @constructor
 * @param integer X coordinate
 * @param integer Y coordinate
 * @param integer Radius
 * @param float The start angle
 * @param float The end angle
 * @param boolean Flag if the arc should be drawn counter-clockwise
 */
Curly.Arc=function(x, y, r, sa, ea, acw) {
	Curly.Arc.superclass.constructor.call(this, x, y);
	
	<div id="prop-Curly.Arc-radius"></div>/**
	 * Radius
	 * @property radius
	 * @type integer
	 */
	this.radius=r || 0;
	
	<div id="prop-Curly.Arc-startAngle"></div>/**
	 * The start angle
	 * @property startAngle
	 * @type float
	 */
	this.startAngle=sa || 0;
	
	<div id="prop-Curly.Arc-endAngle"></div>/**
	 * The end angle
	 * @property endAngle
	 * @type float
	 */
	this.endAngle=ea===undefined ? Math.PI*2 : ea;
	
	<div id="prop-Curly.Arc-antiClockwise"></div>/**
	 * Flag if the arc should be drawn counter-clockwise
	 * @property antiClockwise
	 * @type boolean
	 */
	this.antiClockwise=!!acw;
	
	<div id="method-Curly.Arc-getPath"></div>/** 
	 * Returns this instance as a Curly.Path object.
	 * 
	 * @return Curly.Path
	 * @param Curly.Canvas
	 */
	this.getPath=function(canvas) {
		return canvas.
			path(this.x, this.y).
			arc(this.radius, this.startAngle, this.endAngle, this.antiClockwise);
	};
};
Curly.extendClass(Curly.Arc, Curly.Shape);
</pre>    
</body>
</html>